<?php

namespace app\rental\model;

use think\Model;

class RentalRankModel extends Model
{
    public static   $STATUS = array(
        1=>"已启用",
        0=>"未启用",
    );
    /**
     * 关联汽车
     */
    public function cars()
    {
        return $this->hasMany('RentalCarModel','rank_id');
    }
    public function getRank(){
        return $this->where(['status'=>1])->field('id,rank')->select()->toArray();
    }
}
